package easy

func FindLengthOfLCIS(nums []int) int {
	n := len(nums)
	maxLen := 1
	start := 0
	for i := 1; i < n; i++ {
		if nums[i] <= nums[i-1] {
			start = i
		}
		maxLen = max(maxLen, i-start+1)
	}
	return maxLen
}
